package edu.hwadee.tests;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import edu.hwadee.action.CarAction;
import edu.hwadee.entity.Car;

/**
* @author luhaojian
* @version ����ʱ�䣺2018��8��9�� ����3:01:56
* ���ܣ����Գ�����Ϣ����ɾ���
*/
public class CarTest {

	public CarTest() {
		// TODO Auto-generated constructor stub
	}
	@Test
	public void carTest(){
		ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext.xml");
		CarAction carAction=(CarAction)context.getBean("CarAction");
		
		Car car=new Car();
		car.setCarId(8463255);
		car.setCarNumber("��W86293");
		car.setBrandModel("����");
		
		System.out.println(carAction.addCar());
	}

}
